package com.indexingsystem.system.service;

import java.util.List;

import com.indexingsystem.boss.Vo.TerminalsVo;
import com.indexingsystem.boss.common.PagedResult;
import com.indexingsystem.boss.entity.Terminals;

public interface ITerminalsService {

	/**
	 * 通过终端id删除终端信息.
	 * 
	 * @param terminalCode
	 * @return
	 */
	int deleteByPrimaryKey(String terminalCode) throws Exception;

	/**
	 * 批量删除终端信息.
	 * 
	 * @param terminalIdList
	 * @return
	 */
	int deleteTerminalsByIdBatch(List<String> terminalIdList) throws Exception;

	/**
	 * 带条件新增终端信息.
	 * 
	 * @param record
	 * @return
	 */
	int insertSelective(Terminals record) throws Exception;
	
	
	/**
	 * 通过终端id查询终端关联资源关系列表.
	 * @param terminalId
	 * @return
	 */
	List<Terminals> getTerminalsByTerminalId(String terminalId);

	/**
	 * 分页查询终端信息.
	 * 
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	PagedResult<Terminals> selectTerminalsList(String queryCriteria,Integer pageNo, Integer pageSize);

	/**
	 * 通过终端id查询终端信息
	 * 
	 * @param terminalCode
	 * @return
	 */
	Terminals selectByPrimaryKey(String terminalCode);

	/**
	 * 通过终端code和终端名称获取终端信息，判断是否存在重复.
	 * 
	 * @param terminalsVo
	 * @return
	 */
	Terminals getTerminalsByTerminalCodeOrTerminalName(TerminalsVo terminalsVo);

	/**
	 * 修改终端信息.
	 * 
	 * @param record
	 * @return
	 */
	int updateByPrimaryKeySelective(Terminals record) throws Exception;

	/**
	 * 获取终端总记录数.
	 * 
	 * @return
	 */
	Integer getTerminalsCount(String queryCriteria);

	/**
	 * 获取终端下拉列表.
	 * 
	 * @return
	 */
	List<Terminals> getTerminalsDropList();
	
	  List<Terminals>   getTerminalsByTerminalList();
}